<?php /* Smarty version 2.6.26, created on 2011-02-16 19:17:01
         compiled from ../../core/admin_views/sidebar.tpl */ ?>
<div id="sidebar" class="right">
    <h2 class="ico_mug">Modules</h2>
    <ul id="menu">
        <?php $this->assign('selected_li', ''); ?>
        <?php $_from = $this->_tpl_vars['acl_admin_items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
        <li>
            <a href="#" class="ico_settings"><?php echo $this->_tpl_vars['k']; ?>
</a>
            <ul >
                <?php $_from = $this->_tpl_vars['v']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
                <?php if ($this->_tpl_vars['current_module'] == $this->_tpl_vars['i']->module_name): ?>
                    <?php $this->assign('selected_li', ($this->_tpl_vars['i']->id)); ?>
                <?php endif; ?>
                <li id="menu_<?php echo $this->_tpl_vars['i']->id; ?>
"><a href="<?php echo $this->_tpl_vars['base_index_url']; ?>
/<?php echo $this->_tpl_vars['i']->module_name; ?>
/admin/<?php echo $this->_tpl_vars['i']->controller; ?>
/<?php echo $this->_tpl_vars['i']->function; ?>
" title="<?php echo $this->_tpl_vars['i']->module_desc; ?>
"><?php echo $this->_tpl_vars['i']->item_name; ?>
</a></li>
                <?php endforeach; endif; unset($_from); ?>
            </ul>  
        </li>
        <?php endforeach; endif; unset($_from); ?>
    </ul>

</div><!-- end #sidebar -->
<script type="text/javascript">
    var li = "#menu_"+'<?php echo $this->_tpl_vars['selected_li']; ?>
';
    $('#menu ul').hide();
    $('#menu li a').click(
        function() {
            var checkElement = $(this).next();
            if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
                return false;
            }
            if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
                $('#menu ul:visible').slideUp('normal');
                checkElement.slideDown('normal');
                return false;
            }
        }
        );
    $($(li).parent()).show();
</script>